Skip to content

Instantly share code, notes, and snippets.

@rawaludin
rawaludin / psd2png.sh
Created July 11, 2013 05:56
Batch Convert PSD to PNG in Mac OS X
#!/bin/bash
for i in *psd
do
name=${i%.psd}
convert "$name.psd[0]" -resize 100% "$name.png"
done
@mickeypash
mickeypash / gist:b0b22ab84495fe4b033895a79dd78468
Last active May 19, 2024 07:26
George Hotz - talking hour - 2020-08-31
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 19, 2024 07:24
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@aishwarya8615
aishwarya8615 / Life_Expectancy_Data.csv
Last active May 19, 2024 07:24
Life Expectancy Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 23 columns, instead of 13. in line 6.
Country,Continent,Year,Status,Life_expectancy ,Adult_Mortality,infant_deaths,Alcohol,percentage_expenditure,Hepatitis_B,Measles , BMI ,under_five_deaths ,Polio,Total_expenditure,Diphtheria , HIV/AIDS,GDP,Population, thinness 1-19 years, thinness 5-9 years,Income_composition_of_resources,Schooling
Afghanistan,Asia,2015,Developing,65,263,62,0.01,71.27962362,65,1154,19.1,83,6,8.16,65,0.1,584.25921,33736494,17.2,17.3,0.479,10.1
Afghanistan,Asia,2014,Developing,59.9,271,64,0.01,73.52358168,62,492,18.6,86,58,8.18,62,0.1,612.696514,327582,17.5,17.5,0.476,10
Afghanistan,Asia,2013,Developing,59.9,268,66,0.01,73.21924272,64,430,18.1,89,62,8.13,64,0.1,631.744976,31731688,17.7,17.7,0.47,9.9
Afghanistan,Asia,2012,Developing,59.5,272,69,0.01,78.1842153,67,2787,17.6,93,67,8.52,67,0.1,669.959,3696958,17.9,18,0.463,9.8
Afghanistan,Asia,2011,Developing,59.2,275,71,0.01,7.097108703,68,3013,17.2,97,68,7.87,68,0.1,63.537231,2978599,18.2,18.2,0.454,9.5
Afghanistan,Asia,2010,Developing,58.8,279,74,0.01,79.67936736,66,1989,16.7,102
@johnbeynon
johnbeynon / add_domain.rb
Last active May 19, 2024 07:24
Add custom domain to Render preview environment app
#!/usr/bin/ruby
# Script to add a custom domain to a preview environment web service. Use it via the buildCommand
#
# Resultant custom domain added to the service will be:
# <servicename>-pr-<number>.prs.mydomain.com
#
# Setup:
#
# Add a wildcard DNS entry to your domain, something like *.prs.mydomain.com pointing to 216.57.24.1
@tsuriga
tsuriga / config.ini
Created March 20, 2016 13:48
Simple config file validation in python
[DEFAULT]
; Operation mode
; This is a global value for all sections
mode = master
[server]
; Connection lifetime
timeout = 3600
@ziritrion
ziritrion / pythondata.md
Last active May 19, 2024 07:20
Python and libraries cheat sheet

Python

Lists

  • [1, 2, 3, 4, 5]

Power operator (2^5)

  • 2 ** 5

Square root (power operator trick)

  • 9 ** 0.5
@HarmJ0y
HarmJ0y / PowerView-3.0-tricks.ps1
Last active May 19, 2024 07:18
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 19, 2024 07:17
crack activate Office on mac with license file